<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="cn.edu.ujn.shi.dao.Complain" %>
<%@ include file="header.jsp" %>
<center>
    <hr/>
    <img src='images/top.jpg' width='100%' height='120px'/>
    <hr/>
</center>
<br/>
<center><img src='images/u6.png' height=70px><font size='+4' face='楷体' color='#7D26CD'><b>我的投诉信息</b></font>
</center>
<hr/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='addComplain'><img src='images/add.png' width='100px'/></a>
<center>
    <table border=1 width=90%>
        <tr bgcolor='#E0EEE0'>
            <td>投诉内容</td>
            <td>投诉时间</td>
            <td>处理人</td>
            <td>反馈内容</td>
            <td>处理时间</td>
            <td>操作</td>
        </tr>
        <%
            List<Complain> list = (List<Complain>) request.getAttribute("list");
            for (Complain g : list) {
                out.println("<tr>");
                out.print("<td>" + g.getContent() + "</td>" +
                        "<td>" + g.getComplainTime() + "</td>" +
                        "<td>" + g.getProcessedBy() + "</td>" +
                        "<td>" + g.getFeedback() + "</td>" +
                        "<td>" + g.getFeedbackTime() + "</td>");
                out.println("<td><a href='updateComplain?id=" + g.getId() + "'>更新</a>");
                out.println("<a href='DeleteComplainServlet?id=" + g.getId() + "'>删除</a></td>");
                out.println("</td>");
                out.println("</tr>");
            }
        %>
    </table>
</center>
<%@ include file="footer.jsp" %>

